package main

import "fmt"

type Goods struct {
	Name string
	Price float64
}

type Brand struct {
	Name string
	Address string
}

type TV struct {
	*Goods
	*Brand
}

func main() {

	tv := TV{ &Goods{"电视机001", 5000}, &Brand{"海尔", "山东"}, }

	fmt.Println(*tv.Goods, *tv.Brand)

}